<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<title>网页授权</title>
</head>
<body>
	<h1><a id="jumpRegLogin" href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxfdd043128cf84acd&redirect_uri=http://h5.gzbaoya.cn/wxapp/wx/getUserInfos.do&response_type=code&scope=snsapi_userinfo#wechat_redirect" style="display: block;">微信公众号授权登录</a></h1>
<button>生成二维码</button>
<img alt="" src="">
<script src="<%=request.getContextPath()%>/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$(function(){
	$("button").click(function(){
		var url = "GetTicket"
		$.get(url,function(){
			var scr = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket="+ticket
			$("img").attr("src",src)		
		})
	})
})
</script>
<script type="text/javascript">
$(function(){
 
	/* $("#jumpRegLogin").on("click",function(){
		var openid = getOpeId();
		console.log(openid)
	})
	function getOpeId(){
		var res = $.getJSON("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxfdd043128cf84acd&redirect_uri=http://h5.gzbaoya.cn/wxapp/wx/getUserInfoo.do&response_type=code&scope=snsapi_userinfo#wechat_redirect",function(result){
			console.log(result)
		});
		return res
	} */
})
</script>
</body>
</html>
